import request from '@/sheep/request';

export default {
	//获取题库第二级别分类
	getcategorys: (params) =>
		request({
			url: 'tiku.index/categorys',
			method: 'GET',
			params,
		}),

	//获取用户下的所有题库
	lists: (params) =>
		request({
			url: 'tiku.index/listsall',
			method: 'GET',
			params,
		}),

	//根据ID获取所有章节
	getZhangjieById: (params) =>
		request({
			url: 'tiku.index/getZhangjieById',
			method: 'GET',
			params,
		}),

	getTikuByUser: (params) =>
		request({
			url: 'tiku.index/getTikuByUser',
			method: 'GET',
			params,
		}),

	getTikuUserInfo: (params) =>
		request({
			url: 'tiku.index/getTikuUserInfo',
			method: 'GET',
			params,
		})
};